/*
小程序处理的Json必须是""不能是''

网络上的json:
{"a":1,"b":2,"hasaki":"余佩玲"}
*/

wx.request({
      url: 'https://coding.net/u/Kashaki/p/books/git/raw/master/test_littil_code.txt',
      data: '',
      header: {},
      method: 'GET',
      dataType: 'json',
      responseType: 'text',
      success: function (res){
        global_text=res.data
      },
      fail: function (res) {
        global_text = res.data,
          console.log("失败返回" + res)
      },
      complete: function (res) {
        global_text =res.data
      },
    })



this.setData({
      //return_text:global_text.split("/").slice(0,1),
      return_text:global_text.hasaki,
      // {"a":1,"b":2,"hasaki":{"余佩玲":"爱陈常鸿","ha":"我爱余佩玲"}}
      return_text:global_text.hasaki.ha,// 我爱余佩玲
      show_text: true,
    })

// 返回  余佩玲